package com.service;

import com.MyProperties;
import org.springframework.stereotype.Service;

@Service
public class MyServiceImpl implements MyService{
    private final MyProperties properties;

    public MyServiceImpl(MyProperties properties) {
        this.properties = properties;
    }

    @Override
    public String getName() {
        return properties.getName();
    }
}
